zazhi = input()
xin = input()
def check(xin, zazhi):
    for i in xin:
        if xin.count(i) > zazhi.count(i):
            return False
    return True

print('YES' if check(xin, zazhi) else 'NO')